
#include "Rectangle.h"

Rectangle::Rectangle(double length, double width) : length(length), width(width)
{
}

double Rectangle::getLength(void) const
{
    return length;
}

double Rectangle::getWidth(void) const
{
    return width;
}

void Rectangle::setLength(double length)
{
    this->length = length;
}

void Rectangle::setWidth(double width)
{
    this->width = width;
}

double Rectangle::getPerimeter(void) const
{
    return 2 * (length + width);
}

double Rectangle::getArea(void) const
{
    return length * width;
}

